package com.zx.map.dao.mapper;

import com.zx.map.dao.model.AgentLeft;
import com.zx.map.dao.model.AgentLeftExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AgentLeftMapper {
    int countByExample(AgentLeftExample example);

    int deleteByExample(AgentLeftExample example);

    int deleteByPrimaryKey(Long cussId);

    int insert(AgentLeft record);

    int insertSelective(AgentLeft record);

    List<AgentLeft> selectByExample(AgentLeftExample example);

    AgentLeft selectByPrimaryKey(Long cussId);

    int updateByExampleSelective(@Param("record") AgentLeft record, @Param("example") AgentLeftExample example);

    int updateByExample(@Param("record") AgentLeft record, @Param("example") AgentLeftExample example);

    int updateByPrimaryKeySelective(AgentLeft record);

    int updateByPrimaryKey(AgentLeft record);
    
    List<AgentLeft> getPageByModel(@Param("pageSize") int pageSize, @Param("pageBegin") int pageBegin, @Param("example") AgentLeftExample example);

    /**
     * 批量加入
     * @param agentLeftList
     * @return
     */
	int saveBatch(List<AgentLeft> agentLeftList);
}